//
//  ViewController.m
//  视频采集
//
//  Created by Apple on 16/11/1.
//  Copyright © 2016年 郭凯. All rights reserved.
//

#import "ViewController.h"
#import "GKVideoCaptureController.h"

@interface ViewController ()

@property (strong, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}


- (IBAction)startRecord:(id)sender {
    GKVideoCaptureController *recoardVc = [[GKVideoCaptureController alloc]init];
    [recoardVc setVideoFristImage:^(UIImage *image) {
        self.imageView.image = image;
    }];
    [self.navigationController pushViewController:recoardVc animated:YES];
}

@end
